package com.mazaiting.uac.config;

import com.mazaiting.uac.constant.enums.CaptchaTypeEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 验证码配置
 *
 * @author mazaiting
 * @create_time 2022/9/26 11:46
 */
@Data
@Configuration
@ConfigurationProperties("captcha")
public class CaptchaProperties {

    /**
     * 验证码类型，默认:ARITHMETIC
     */
    private CaptchaTypeEnum type = CaptchaTypeEnum.ARITHMETIC;

    /**
     * 验证码值的有效期(单位:秒)，默认:120
     */
    private Long ttl = 120L;

    /**
     * 超时时间
     */
    private Long timeout = 1000L;

}
